package com.sample.dubbo.interceptor;

import static org.apache.dubbo.common.constants.CommonConstants.CONSUMER;

import org.apache.dubbo.common.extension.Activate;
import org.apache.dubbo.rpc.Invocation;
import org.apache.dubbo.rpc.Result;
import org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor;
import org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker;

/**
 * 感觉基本做不了啥事
 * 
 * @author DELL
 */
@Activate(group = { CONSUMER })
public class TestInterceptor implements ClusterInterceptor, ClusterInterceptor.Listener {

	@Override
	public void before(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation) {
	}

	@Override
	public void after(AbstractClusterInvoker<?> clusterInvoker, Invocation invocation) {
	}

	@Override
	public void onMessage(Result appResponse, AbstractClusterInvoker<?> clusterInvoker, Invocation invocation) {
		
	}

	@Override
	public void onError(Throwable t, AbstractClusterInvoker<?> clusterInvoker, Invocation invocation) {
		
	}
}
